package br.com.mywebspring.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import br.com.mywebspring.model.entity.Login;


@Controller
@RequestMapping(value="/login")
public class LoginController {

	@RequestMapping(method=RequestMethod.POST)
	public String verificarLogin( Login login ){
		//lucas
		
		
		return "home/home";
	}
	
	@RequestMapping(method=RequestMethod.GET)
	public String index( Model model ){
		model.addAttribute("login", new Login());
		return "login/login";
	}
	
}
